// JavaScript Document
$(document).ready(init);
$("button").click(function () {
      
    });


function init(){
	$(".emptyOnClick").bind("focus", function(){empty(this)});
	$("#frm_username").bind("focus", function(){empty(this)});
		
		$("#frm_password").bind("focus", function(){
												  empty(this)
												  
												  });
	
	$("#frm_search_input").bind("focus", function(){empty(this)});

	}
	
	
	
	
function empty(element){
		if(element.value == element.defaultValue){
			element.value = '';
		}
	
	$(element).bind("blur", function(){turnBack(element)});
	}
	
	function turnBack(element, index){
		if(element.value == element.defaultValue || element.value == ''){
			element.value = element.defaultValue
		}
	}
	

